package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class ExaminationPageVo {
    /**
     * 考试id
     */
    private Integer examinationId;

    /**
     * 考场id
     */
    private String examinationName;

    /**
     * 课程id
     */
    private Integer subjectId;

    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;

    @Override
    public String toString() {
        return "ExaminationPageVo{" +
                "examinationId=" + examinationId +
                ", examinationName='" + examinationName + '\'' +
                ", subjectId=" + subjectId +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ExaminationPageVo that = (ExaminationPageVo) o;
        return Objects.equals(examinationId, that.examinationId) && Objects.equals(examinationName, that.examinationName) && Objects.equals(subjectId, that.subjectId) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(examinationId, examinationName, subjectId, pageSize, page);
    }
}
